{if $get.act == "" ||

    $get.act == "index" ||
    $get.act == "article_list" ||
    $get.act == "article_show" ||
    $get.act == "quicklaunch" ||
    $get.act == "pm_in" ||
    $get.act == "pm_out" ||
    $get.act == "pm_send" ||
    $get.act == "amend" ||
    $get.act == "prompt"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">管理首页
      <ul>
        <li class="submenu_item"><a href="{$control_admin}?act=index" target="_self">管理首页</a></li>
        {if $admin.ag_fileallow.article_list == "1"}<li class="submenu_item"><a href="{$control_admin}?act=article_list" target="_self">内部公告</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{if $admin.ag_fileallow.quicklaunch == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">快速启动 <a href="{$control_admin}?act=quicklaunch" target="_self"><img src="{$dir_images_admin}/submenu_config.gif" border="0" align="absmiddle" alt="设置快速启动" title="设置快速启动" /></a>
      <ul>
      {if $admin.ag_fileallow.quicklaunch == "1"}
        {foreach name=quicklaunch from=$quicklaunch item=item}
        <li class="submenu_item"><a href="{$item.url}" target="_self" title="{$item.name|str_entag:'space,br'}"><span style="{if $item.name_color != ''}color:{$item.name_color_value};{/if}{if $item.name_bold == '1'}font-weight:bold;{/if}">{$item.name|str_entag:'space,br'}</a></li>
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.pm_in == "1" ||
    $admin.ag_fileallow.pm_out == "1" ||
    $admin.ag_fileallow.pm_send == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">短信发送
      <ul>
      {if $admin.ag_fileallow.pm_in == "1"}<li class="submenu_item"><a href="{$control_admin}?act=pm_in" target="_self">收件箱{if $member.cp_pm_in_total_record_noread > "0"}[未读:{$member.cp_pm_in_total_record_noread}]{/if}</a></li>{/if}
      {if $admin.ag_fileallow.pm_out == "1"}<li class="submenu_item"><a href="{$control_admin}?act=pm_out" target="_self">发件箱</a></li>{/if}
      {if $admin.ag_fileallow.pm_send == "1"}<li class="submenu_item"><a href="{$control_admin}?act=pm_send" target="_self">写短信</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.amend == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">其他设置
      <ul>
      {if $admin.ag_fileallow.amend == "1"}<li class="submenu_item"><a href="{$control_admin}?act=amend" target="_self">我的资料</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_channel" ||

    $get.act == "channel" ||
    $get.act == "trans" ||
    $get.act == "trans_group" ||
    $get.act == "manage" ||
    $get.act == "setmodel"}
{if $admin.ag_fileallow.channel == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">频道栏目 {if $admin.ag_fileallow.channel == "1"}<a href="{$control_admin}?act=channel&channel_id=0" target="_self"><img src="{$dir_images_admin}/submenu_into.gif" border="0" align="absmiddle" alt="进入根目录" title="进入根目录" /></a>{/if}
      <ul>
      {if $admin.ag_fileallow.channel == "1"}
        {foreach name=channel_top from=$channel_top item=channel_top}
        <li class="submenu_item">
          {if $admin.ag_privilege.channel == "1" || ($admin.ag_privilege.channel == "3" && $channel_top.channel_manage_admin_id != "")}
          <a href="{$control_admin}?act=channel&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}">{$channel_top.name|str_entag:'space,br'}</a></li>
          {else}
          <a href="{$control_admin}?act=channel&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}"><span class="disable">{$channel_top.name|str_entag:'space,br'}</span></a></li>
          {/if}
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.setmodel == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">模型管理 {if $admin.ag_fileallow.setmodel == "1"}<a href="{$control_admin}?act=setmodel" target="_self"><img src="{$dir_images_admin}/submenu_into.gif" border="0" align="absmiddle" alt="进入根目录" title="进入根目录" /></a>{/if}
      <ul>
      {if $admin.ag_fileallow.setmodel == "1"}
        {foreach name=setmodel_list from=$setmodel_list item=setmodel_list}
        <li class="submenu_item">
          <a href="{$control_admin}?act=setmodel&ope=table&setmodel_id={$setmodel_list.id}" target="_self" title="{$setmodel_list.brief|str_entag:'space,br'}">{$setmodel_list.name|str_entag:'space,br'}</a>
          <a href="{$control_admin}?act=setmodel&ope=amend&setmodel_id={$setmodel_list.id}" target="_self"><img src="{$dir_images_admin}/icon_edit.gif" border="0" alt="改" title="修改字段" align="absmiddle" /></a>
          <a href="{$control_admin}?act=setmodel&ope=table&setmodel_id={$setmodel_list.id}" target="_self"><img src="{$dir_images_admin}/icon_list.gif" border="0" alt="表" title="模型表列表" align="absmiddle" /></a>
        </li>
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.trans == "1" ||
    $admin.ag_fileallow.trans_group == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">横向分类管理
      <ul>
      {if $admin.ag_fileallow.trans == "1"}<li class="submenu_item"><a href="{$control_admin}?act=trans" target="_self">横向分类值</a></li>{/if}
      {if $admin.ag_fileallow.trans_group == "1"}<li class="submenu_item"><a href="{$control_admin}?act=trans_group" target="_self">横向分类组</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_content" ||

    $get.act == "content"}
{if $admin.ag_fileallow.content == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">内容管理
      <ul>
      {if $admin.ag_fileallow.content == "1"}
        {foreach name=channel_top from=$channel_top item=channel_top}
        <li class="submenu_item">
          <img id="type" border="0" align="absmiddle" src="{$dir_images_admin}/icon_folder.gif" alt="频道" title="频道">
          {if $admin.ag_privilege.content == "1" || ($admin.ag_privilege.content == "3" && $channel_top.channel_manage_admin_id != "")}
          <a href="{$control_admin}?act=content&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}">{$channel_top.name|str_entag:'space,br'}</a></li>
          {else}
          <a href="{$control_admin}?act=content&channel_id={$channel_top.id}" target="_self" title="{$channel_top.brief|str_entag:'space,br'}"><span class="disable">{$channel_top.name|str_entag:'space,br'}</span></a></li>
          {/if}
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_member" ||

    $get.act == "member" ||
    $get.act == "member_group" ||
    $get.act == "admin" ||
    $get.act == "admin_group" ||
    $get.act == "forbid_ip"}
{if $admin.ag_fileallow.member == "1" ||
    $admin.ag_fileallow.member_group == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">会员管理
      <ul>
      {if $admin.ag_fileallow.member == "1"}<li class="submenu_item"><a href="{$control_admin}?act=member" target="_self">会员管理</a></li>{/if}
      {if $admin.ag_fileallow.member_group == "1"}<li class="submenu_item"><a href="{$control_admin}?act=member_group" target="_self">会员群组设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.admin == "1" ||
    $admin.ag_fileallow.admin_group == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">管理员群组设定
      <ul>
      {if $admin.ag_fileallow.admin == "1"}<li class="submenu_item"><a href="{$control_admin}?act=admin" target="_self">管理员管理</a></li>{/if}
      {if $admin.ag_fileallow.admin_group == "1"}<li class="submenu_item"><a href="{$control_admin}?act=admin_group" target="_self">管理员群组设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.forbid_ip == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">屏蔽管理
      <ul>
      {if $admin.ag_fileallow.forbid_ip == "1"}<li class="submenu_item"><a href="{$control_admin}?act=forbid_ip" target="_self">禁止IP</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_config" ||

    $get.act == "set_config" ||
    $get.act == "set_select"}
{if $admin.ag_fileallow.set_config == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">系统设置
      <ul>
      {if $admin.ag_fileallow.set_config == "1"}
        {foreach name=config_sort from=$config_sort item=config_sort}
        <li class="submenu_item"><a href="{$control_admin}?act=set_config&cs_id={$config_sort.cs_id}" target="_self" title="{$config_sort.cs_brief|str_entag:'space,br'}">{$config_sort.cs_name|str_entag:'space,br'}</a></li>
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.set_select == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">系统选项
      <ul>
      {if $admin.ag_fileallow.set_select == "1"}
        {foreach name=select_sort from=$select_sort key=key item=item}
        <li class="submenu_item"><a href="{$control_admin}?act=set_select&sort={$key}" target="_self" title="{$item}">{$item}</a></li>
        {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_tool" ||

    $get.act == "article" ||
    $get.act == "datum" ||

    $get.act == "template" ||
    $get.act == "admin_template" ||
    $get.act == "language" ||
    $get.act == "admin_language" ||

    $get.act == "clean_compile" ||
    $get.act == "clean_cache" ||
    $get.act == "clean_db" ||
    $get.act == "clean_content_cover" ||
    $get.act == "clean_content_attach" ||
    $get.act == "clean_article_cover" ||
    $get.act == "clean_article_attach" ||
    $get.act == "clean_datum_cover" ||
    $get.act == "clean_datum_attach"}
{if $admin.ag_fileallow.article == "1" ||
    $admin.ag_fileallow.datum == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">附加模块
      <ul>
      {if $admin.ag_fileallow.article == "1"}<li class="submenu_item"><a href="{$control_admin}?act=article" target="_self">内部公告管理</a></li>{/if}
      {if $admin.ag_fileallow.datum == "1"}<li class="submenu_item"><a href="{$control_admin}?act=datum" target="_self">资料仓库管理</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.template == "1" ||
    $admin.ag_fileallow.admin_template == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">模板设定
      <ul>
      {if $admin.ag_fileallow.template == "1"}<li class="submenu_item"><a href="{$control_admin}?act=template" target="_self">前台模板设定</a></li>{/if}
      </ul>
      <ul>
      {if $admin.ag_fileallow.admin_template == "1"}<li class="submenu_item"><a href="{$control_admin}?act=admin_template" target="_self">后台模板设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.language == "1" ||
    $admin.ag_fileallow.admin_language == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">语言设定
      <ul>
      {if $admin.ag_fileallow.language == "1"}<li class="submenu_item"><a href="{$control_admin}?act=language" target="_self">前台语言设定</a></li>{/if}
      </ul>
      <ul>
      {if $admin.ag_fileallow.admin_language == "1"}<li class="submenu_item"><a href="{$control_admin}?act=admin_language" target="_self">后台语言设定</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{if $admin.ag_fileallow.clean_compile == "1" ||
    $admin.ag_fileallow.clean_cache == "1" ||
    $admin.ag_fileallow.clean_db == "1" ||
    $admin.ag_fileallow.clean_content_cover == "1" ||
    $admin.ag_fileallow.clean_content_attach == "1" ||
    $admin.ag_fileallow.clean_article_cover == "1" ||
    $admin.ag_fileallow.clean_article_attach == "1" ||
    $admin.ag_fileallow.clean_datum_cover == "1" ||
    $admin.ag_fileallow.clean_datum_attach == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">清空缓存
      <ul>
      {if $admin.ag_fileallow.clean_compile == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_compile" target="_self">清空模板缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_cache == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_cache" target="_self">清空页面缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_db == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_db" target="_self">清空数据库缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_content_cover == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_content_cover" target="_self">清空发布内容封面缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_content_attach == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_content_attach" target="_self">清空发布内容附件缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_article_cover == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_article_cover" target="_self">清空内部公告封面缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_article_attach == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_article_attach" target="_self">清空内部公告附件缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_datum_cover == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_datum_cover" target="_self">清空资料仓库封面缓存</a></li>{/if}
      {if $admin.ag_fileallow.clean_datum_attach == "1"}<li class="submenu_item"><a href="{$control_admin}?act=clean_datum_attach" target="_self">清空资料仓库附件缓存</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_datum_show" ||

    $get.act == "datum_show"}
{if $admin.ag_fileallow.datum_show == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">资料仓库
      <ul>
      {if $admin.ag_fileallow.datum_show == "1"}
      {foreach name=datum_list from=$datum_list item=datum_list}
        <li class="submenu_item"><a href="{$control_admin}?act=datum_show&datum_id={$datum_list.id}" target="_self" title="{$datum_list.subject|str_entag:'space,br'}">{$datum_list.phrase|str_entag:'space,br'}</a></li>
      {/foreach}
      {/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
{if $get.act == "index_help" ||

    $get.act == "help_system" ||
    $get.act == "help_frame" ||
    $get.act == "help_template" ||
    $get.act == "help_skill"}
{if $admin.ag_fileallow.help_system == "1" ||
    $admin.ag_fileallow.help_frame == "1" ||
    $admin.ag_fileallow.help_template == "1" ||
    $admin.ag_fileallow.help_skill == "1"}
<div class="submenu_table">
<div id="submenu_list">
  <ul>
    <li class="submenu_title">帮助支持
      <ul>
      {if $admin.ag_fileallow.help_system == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_system" target="_self">系统介绍</a></li>{/if}
      {if $admin.ag_fileallow.help_frame == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_frame" target="_self">系统架构</a></li>{/if}
      {if $admin.ag_fileallow.help_template == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_template" target="_self">模板标签</a></li>{/if}
      {if $admin.ag_fileallow.help_skill == "1"}<li class="submenu_item"><a href="{$control_admin}?act=help_skill" target="_self">使用技巧</a></li>{/if}
      </ul>
    </li>
  </ul>
</div>
</div>
{/if}
{/if}
